const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin')
module.exports = {
  assetsDir: "./",
  publicPath: './',
  outputDir: '../rule-designer/src/main/resources/static',
  lintOnSave: true,
  configureWebpack: {
    // 取消打包后文件大于244k警告
    performance: {
      hints: false
    },
    plugins: [
      new MonacoWebpackPlugin()
    ]
  },
  pages: {
    index: {
      entry: 'src/main.js',
      template: 'public/index.html',
      filename: 'index.html',
      env: process.env.NODE_ENV,
      title: '规则引擎-规则设计器',
    }
  }
}
